﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace PhotoGallery.Models
{
    public class CreateTokenResult : BaseResponeResult
    {
        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime Expires { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// Token
        /// </summary>
        public string AccessToken { get; set; }
        public CreateTokenResult(string userName,string token) : base(0, "创建Token成功")
        {
            UserName = userName;
            AccessToken = token;
        }
    }
}
